package cn.itsource.ymcc.mapper;

import cn.itsource.ymcc.domain.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zongchangjiang
 * @since 2023-06-26
 */
public interface CourseMapper extends BaseMapper<Course> {
    void saveCourseAndTeacher(@Param("id") Long id,@Param("teacherIds") List<Long> teacherIds);

    List<Long> selectTeacherIdByCourseId(Long id);

    void batchUpdate(@Param("ids") List<Long> ids,@Param("status") Integer status);
}
